package com.design.designmode.create.proto;

/**
 * @author hxl
 * @since 2023-04-15
 */
public class PrototypeA implements Prototype {

    private int id;
    private double price;

    public PrototypeA() {
    }

    public PrototypeA(int id, double price) {
        this.id = id;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public double getPrice() {
        return price;
    }

    @Override
    public Object clone() {
        PrototypeA object = new PrototypeA();
        object.id = this.id;
        object.price = this.price;

        return object;

    }
}
